<?php

namespace Admin\Models\bpm;

use Admin\Models\BaseModel;

class XHBpmOperateProNode extends BaseModel
{
    /**
     *
     * @var integer or string
     */
    public $iId;
    public $iNodeId;
    public $iTempId;
    public $iParentId;
    public $iSort;
    public $iStatus;
    public $sProgress;
    public $tStartDate;
    public $tEndDate;
    public $iOperateProId;
    public $iCheckUser;
    public $tCompleteDate;
    public $sRemark;
    public $sFileUrl;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSource("XHBpm_OperateProNode");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHBpm_OperateProNode';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     *
     * @return XHBpmOperateProNode[]|XHBpmOperateProNode|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     *
     * @return XHBpmOperateProNode|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
